-- GENERATED SPELL FOR [Fel Lash] --


function spell0_13197(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(15230,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_13197', 1000, 1)
end

function spell1_13197(pUnit, Event) --@Arcane Explosion,Self--
pUnit:FullCastSpellOnTarget(22271,pUnit)
pUnit:RegisterEvent('Sorts_13197', 639, 1)
end

function Sorts_13197(pUnit, Event)
local choix_sorts_13197 = math.random(0, 1)
if choix_sorts_13197 == 0 then
pUnit:RegisterEvent('spell0_13197', 1, 1)
end
if choix_sorts_13197 == 1 then
pUnit:RegisterEvent('spell1_13197', 1, 1)
end
end

function mob13197_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_13197', math.random(1500, 3000), 1)
end

function mob13197_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13197_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob13197_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(13197, 1, 'mob13197_Action')
RegisterUnitEvent(13197, 2, 'mob13197_Leave')
RegisterUnitEvent(13197, 3, 'mob13197_Kill')
RegisterUnitEvent(13197, 4, 'mob13197_Die')
